package com.linkgie.galaxyframework.binaryserialize;

import java.util.function.Function;

public class ObjectCreation {

    private Function<?, String> toStringFunction;

    public Function<?, String> toStringFunction() {
        return this.toStringFunction;
    }

    private ObjectCreation() {
    }

    public static Builder initialize() {
        return new Builder();
    }

    public static class Builder {

        private ObjectCreation creation = new ObjectCreation();

        private Builder() {
        }

        public Builder toString(Function<?, String> toStringFunction) {
            creation.toStringFunction = toStringFunction;
            return this;
        }

        public ObjectCreation build() {
            return creation;
        }

    }

}
